﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ShopOnline.Models.ProductCatelogy>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AdminListProductCatelogy
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="w_container m10-tb fl">
        <div class="w_container m10-tb fl">
            <div class="titleheader bold fl">
                Administration Session
            </div>
            <div class="titleheader fr">
                Back to <a class="orange" href="/Admin/Index">Cpanel</a></div>
            <div class="w_container titleheader align-l fl">
                <div class="fl">
                    Cpanel |</div>
                <div class="orange fl">
                    Quản lý Danh mục sản phẩm</div>
            </div>
            <div class="w_container m10-tb fl">
                <a href="/ProductCatelogy/Create" class=" fl ui-state-default ui-corner-all button fr">
                    Thêm mới </a><a href="#"
                        class="fr ui-state-default ui-corner-all button">Back</a>
            </div>
        </div>
        <div class="w_container m10-tb  fl">
            <div class="titleheader   fl adminItem-30 ui-state-default orange bold">
                <div class="sub_container-l fl">
                    Tên danh mục</div>
            </div>
            <div class="titleheader  fl adminItem-20 ui-state-default orange bold text-a-center">
                Hình ảnh</div>
            <div class="titleheader  fl adminItem-10 ui-state-default orange bold text-a-center">
                Độ ưu tiên</div>
            <div class="titleheader  fl adminItem-10 ui-state-default orange bold text-a-center">
                Hiển thị</div>
            <div class="titleheader fl adminItem-20 ui-state-default orange bold text-a-center">
                Action</div>
        </div>
        <%
                foreach (var item in Model)
                {
        %>
        <div class="w_container fl">
            <div class="w_container m10-tb fl">
                <div class="adminItem-30 text-title fl">
                    <div class="sub_container-l align-l fl">
                        <%=item.catelogyName%></div>
                </div>
                <div class="adminItem-20 text-title fl text-a-center">
                    <div class="sub_container-l fl">
                       <img src="../../Content/Logo/<%=item.logo%>" width="100px" height="100px" /></div>
                </div>
                <div class="adminItem-10 text-title fl text-a-center">
                    <div class="sub_container-l fl">
                        <%=item.piority %></div>
                </div>
                 <div class="adminItem-10 text-title fl text-a-center">
                    <div class="sub_container-l fl">
                        <%=item.show %></div>
                </div>
                <div class="adminItem-20 text-title orange fl">
                    <div class="sub_container-l fl" align="center">
                        <div>
                                            <%= Html.ActionLink("Edit", "Edit", new { id=item.catelogyId }) %> |
                                            <%= Html.ActionLink("Delete", "Delete", new { id = item.catelogyId })%>
                        </div>
                    </div>
                </div>
            </div>
            <div class="line-w fl">
            </div>
        </div>
        <%
                }
            %>
        
    </div>
</asp:Content>

